package cn.easybuy.service.impl;

import java.util.List;

import cn.easybuy.dao.ProductDao;
import cn.easybuy.dao.impl.ProductDaoImpl;
import cn.easybuy.entity.Product;
import cn.easybuy.service.ProductService;

public class ProductServiceImpl implements ProductService{
	ProductDao productDao=new ProductDaoImpl();
	@Override
	public List<Product> getProductsByCategoryLevel3Id(int categoryLevel3Id) {
		return productDao.getProductsByCategoryLevel3Id(categoryLevel3Id);
	}
	@Override
	public List<Product> getProductInfo(int id) {
		return productDao.getProductInfo(id);
	}
	@Override
	public List<Product> getAllProducts(int currNo, int pageSize) {
		return productDao.getAllProducts(currNo, pageSize);
	}
	@Override
	public int getTotalCount() {
		return productDao.getTotalCount();
	}
	@Override
	public List<Object> getObjectsByOrderId(int orderId) {
		return productDao.getObjectsByOrderId(orderId);
	}
	@Override
	public int getLevel1Id(int id) {
		return productDao.getLevel1Id(id);
	}
	@Override
	public int getLevel2Id(int id) {
		// TODO Auto-generated method stub
		return productDao.getLevel2Id(id);
	}
	@Override
	public int getLevel3Id(int id) {
		// TODO Auto-generated method stub
		return productDao.getLevel3Id(id);
	}
	@Override
	public int update(Product product) {
		return productDao.update(product);
	}
	@Override
	public int getProIdByName(String name) {
		return productDao.getProIdByName(name);
	}


}
